
import mockjs from 'mockjs';

function createUserList(params) {
    return [
        {
            username:"admin",
            password:"123456",
            token:"111"
        },{
            username:"admin1",
            password:"123456"
        },{
            username:"admin2",
            password:"123456",
            token:"222"
        }
    ]
}


export default [
    //用户登录
    {
        url:'/dev-api/console/auth/v1/login/verify',
        method:"post",
        response:(({ body })=>{
            const { username, password } = body;
            return {
                code:200,
                data:{
                    success:true
                }
            }
        })
    },
    //获取应用列表
    {
        url:'/dev-api/console/application/v1/controller/list',
        method:"get",
        response:(()=>{
            return {
                code:200,
                data:[
                    {
                        clientType:"iOS",
                        name:"IOS"
                    },
                    {
                        clientType:"iOS",
                        name:"IOS2"
                    }
                ]
            }
        })
    },

    //添加应用
    {
        url:'/dev-api/console/application/v1/controller/add',
        method:"post",
        response:((body)=>{
            return {
                code:200,
                data:{
                    success:true
                }
            }
        })
    },



    //获取当前应用下-版本列表
    {
        url:'/dev-api/console/appversion/v1/controller/list',
        method:"post",
        response:((body)=>{
            return {
                code:200,
                data:[
                    {
                        version:"1111",
                        description:"内容",
                        status:'Enable',
                        createDate:'1713926347261'
                    }
                ]
            }
        })
    },


    //获取下载链接列表
    {
        url:'/dev-api/console/downloadlink/v1/controller/list',
        method:"get",
        response:((body)=>{
            return {
                code:200,
                data:[
                    {
                        name:"1111",
                        applicationName:"内容",
                        status:'Enable',
                        createDate:'1713926347261'
                    }
                ]
            }
        })
    },


    //获取用户列表
    {
        url:'/dev-api/console/user/v1/admin/list',
        method:"post",
        response:((body)=>{
            return {
                code:200,
                data:[
                    {
                        name:"aa1",
                        loginName:"登录名",
                        createDate:'1713926347261'
                    }
                ]
            }
        })
    }





]